package com.dk.service.user;

import com.alibaba.dubbo.config.annotation.Service;
import com.dk.mapper.user.TbUserMapper;
import com.dk.pojo.user.TbUser;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Service
@Component
public class UserServiceImpl implements UserService {

    @Resource
    private TbUserMapper userMapper;

    @Override
    public TbUser getUserByUsername(String username) {
        return userMapper.getUserByUsername(username);
    }

    @Override
    public int insertUser(TbUser tbUser) {
        return userMapper.insertSelective(tbUser);
    }
}
